<!--
 * @Author: ljc
 * @Date: 2024-08-06 13:44:31
 * @LastEditors: g05047
 * @LastEditTime: 2024-11-25 15:21:25
 * @Description: 区划和单位组件大小
-->
<template>
  <el-form-item v-if="treeType === 'ad'"
    :label="i18nt('designer.setting.adSize')">
    <el-select v-model="optionModel.adConfig.adSize">
      <el-option v-for="item in widgetSizes"
        :key="item.value"
        :label="item.label"
        :value="item.value">
      </el-option>
    </el-select>
  </el-form-item>
  <el-form-item v-else :label="i18nt('designer.setting.agSize')">
    <el-select v-model="optionModel.agConfig.agSize">
      <el-option v-for="item in widgetSizes"
        :key="item.value"
        :label="item.label"
        :value="item.value">
      </el-option>
    </el-select>
  </el-form-item>
</template>
<script>
import i18n from "@/utils/i18n"
export default {
  name: "treeSize-editor",
  mixins: [i18n],
  props: {
    designer: Object,
    selectedWidget: Object,
    optionModel: Object,
    treeType: String,
  },
  data() {
    return {
      widgetSizes: [
        { label: 'default', value: '' },
        { label: 'large', value: 'large' },
        //{label: 'medium', value: 'medium'},
        { label: 'small', value: 'small' },
        //{label: 'mini', value: 'mini'},
      ],
    }
  }
}
</script>
<style scoped>
</style>
